#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'hello'
__mtime__ = '2019-01-16'
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
              ┏┓      ┏┓
            ┏┛┻━━━┛┻┓
            ┃      ☃      ┃
            ┃  ┳┛  ┗┳  ┃
            ┃      ┻      ┃
            ┗━┓      ┏━┛
                ┃      ┗━━━┓
                ┃  神兽保佑    ┣┓
                ┃　永无BUG！   ┏┛
                ┗┓┓┏━┳┓┏┛
                  ┃┫┫  ┃┫┫
                  ┗┻┛  ┗┻┛
"""


def getwords(words):

    word = words.split('、')
    # print 'word ===== %s ' % word
    with open('search_words.txt', 'a') as f1:
        for i in word:

            search_words = ("," + "'" + i + "'")

            f1.writelines(search_words)

words = raw_input("words:")
getwords(words)